#include<iostream>
using namespace std;
int main()
{
	int A,B,C;
	int add;
	cin>>A>>B>>C;
	add=A*0.2+B*0.3+C*0.5;
	cout<<add;
	return 0;
}
